﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TMDT_Nhom1A.UserControl
{
    public partial class Header : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            string Role = Session["Role"].ToString();
            if (Role == "Quản trị website")
            {
                headerAdministrator.Visible = true;
                headerNormal.Visible = false;
            }
            if (Role == "Đối tác doanh nghiệp")
            {
                headerCustomer.Visible = true;
                headerNormal.Visible = false;
            }
            if (Role == "Quản lý")
            {
                headerManager.Visible = true;
                headerNormal.Visible = false;
            }
        }
    }
}